<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Dialog</title>
</head>
<body>
	<h2 class="contentTitle">
		xx
	</h2>
	<form action="${pageContext.request.contextPath }/DBAjax" method="post" id="form1" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent nowrap" layoutH="97">
			<fieldset>
				<legend>legend</legend>
				<dl>
					<dt>Name:</dt>
					<dd style="width: 50%"><input type="text" required="required" id="name"></dd>
				</dl>
				<dl>
					<dt>Pasd:</dt>
					<dd style="width: 50%"><input type="password" required="required" id="pasd"></dd>
				</dl>
				<dl>
					<dt>Date:</dt>
					<dd style="width: 50%"><input class="date textInput readonly" type="text" readonly="true" maxdate="2012-12-15" mindate="2000-01-15" value="2000-01-15" name="date2"></dd>
				</dl>
				<dl>
					<dd style="width: 50%"><input type="file" required="required" accept="image/*"></dd>
					<dt>File:</dt>
				</dl>
				<dl>
					<dd style="width: 50%;margin-left: 36%">
						<a class="button" href="${pageContext.request.contextPath }/ASAjax" rel="dialog1" target="ajaxTodo"><span>submit</span></a>
					</dd>
				</dl>
			</fieldset>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
			</ul>
		</div>
	</form>
	<script type="text/javascript">
		$(function(){
			$("#f2").click(function(){
				if($("#name").val()!="" && $("#pasd").val()!=""){
					alertMsg.confirm("OK?", {
						okCall: function(){
		                	return $("#form1").submit();
		                }
					});
					return false;
				}
			});
		});
	</script>
</body>
</html>